package com.raigor.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.raigor.common.annotation.Excel;
import com.raigor.common.core.domain.BaseEntity;

/**
 * 用户apikey对象 sys_user_apikey
 * 
 * @author libaolu
 * @date 2021-12-31
 */
public class SysUserApikey extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** api key */
    private String apiKey;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public void setApiKey(String apiKey) 
    {
        this.apiKey = apiKey;
    }

    public String getApiKey() 
    {
        return apiKey;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apiKey", getApiKey())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
